package com.dh.project.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.dh.project.mapper.AdminMapper;
import com.dh.project.model.Admin;
import com.dh.project.model.PageModel;
import com.dh.project.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by admin on 2017/3/29.
 */
@Service
public class AdminServiceImpl extends SuperServiceImpl<AdminMapper,Admin> implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public List<Admin> selectAdminListByMap(Map map) {
        return adminMapper.selectAdminListByMap(map);
    }

    @Override
    public PageModel selectAdminListByMapCount(Map map) {
        return adminMapper.selectAdminListByMapCount(map);
    }
}
